#ifndef KINGHT_H
#define KINGHT_H

#include "Person.h"
#include <QList>
#include "Data/KnightData.h"

class Task;
class Knight : public Person
{
    Q_OBJECT
public:
    Knight();
    Knight(const Person &person);
    Knight(const Knight &kinght);
    virtual bool Init(City *city);
    void handleTask(Task *task);
    void recevieTask(Task *task);
public slots:
    virtual void goWork(Date *date);
    bool checkAndHandleTask(Date *date);
private:
    QList<Task *> m_taskList;
    KnightData data;

};

#endif // KINGHT_H
